From: Sachin Kamat Date: Wed, 9 Oct 2013 10:28:27 +0000 (+0530) Subject: staging: lustre: Do not use 0 for NULL pointer in console.c X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~7760^2~336 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=aad7b60bf1b402913311f2cc4899e691356ea9a2;p=linux-4.9.git staging: lustre: Do not use 0 for NULL pointer in console.c Do not use 0 for NULL pointer. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c index 09e4700af640..f1152e4fbcc4 100644 --- a/drivers/staging/lustre/lnet/selftest/console.c +++ b/drivers/staging/lustre/lnet/selftest/console.c @@ -797,7 +797,7 @@ lstcon_group_info(char *name, lstcon_ndlist_ent_t *gents_p, return rc; } - if (dents_up != 0) { + if (dents_up) { /* verbose query */ rc = lstcon_nodes_getent(&grp->grp_ndl_list, index_p, count_p, dents_up);